package bridge.example;

/**
 * Created by IntelliJ
 * Author:熊磊
 */
public abstract class Phone {
    //聚合
    private Brand brand;

    public Phone(Brand brand) {
        this.brand = brand;
    }
    protected void open(){
        this.brand.open();
    }
    protected void call(){
        this.brand.call();
    }
    protected void close(){
        this.brand.close();
    }
}
